package com.javaweb.service;

import com.javaweb.model.User;
import com.javaweb.service.dto.PageResult;

import java.util.List;

public interface UserService {
    public User login(String username, String password) ;

    public List<User> queryByName(String username) ;

    public int register(User user);

    public PageResult queryUsers(User userCondition, Integer pageNum, Integer pageSize);

    public void addAssignRole(String userId, List <String> roleIds);

    List<Integer> getRoleIdsByUserId(String userId);
}
